package com.yuntu.service;

import com.yuntu.pojo.Dev;
import com.yuntu.tools.PageUtil;

import java.util.List;

public interface DevService {
    //登录
    Dev login(String devCode,String devPassword) throws Exception;
    //查询全部
    List<Dev> devAll()throws Exception;
    //添加
    boolean add(Dev dev)throws Exception;
    //删除
    boolean del(int id)throws Exception;
    //根据id查询
    Dev getId(int id)throws Exception;
    //修改
    boolean upd(Dev dev)throws Exception;
    //分页
    List<Dev> getPageUtil(PageUtil<Dev> pageUtil)throws Exception;
}
